import { createWebHashHistory, createRouter } from "vue-router"
import Helloworld from './components/Helloworld.vue'
import Todo from './views/Todo.vue'
import Todo2 from './views/Todo2.vue'

const history = createWebHashHistory();
export const router = createRouter({
  history,
  routes: [
    { path: "/", redirect: '/todo/all' },
    { path: "/todo", redirect: '/todo/all' },
    { path: "/todo/:filter", component: Todo },
    { path: "/todo2", component: Todo2 },
    { path: "/helloworld", component: Helloworld },
  ],
});

export default router